package com.soilflow.common.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.soilflow.common.annotation.Excel;
import com.soilflow.common.mybatisplus.BaseEntity;
import com.soilflow.common.mybatisplus.BasePageEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 【请填写功能名称】对象 sys_article
 * 
 * @author party
 * @date 2023-10-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysArticleDto extends BasePageEntity {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    private Long categoryId;

    private Long parentId;

    @TableField(exist = false)
    private String categoryName; //分类名称

    @TableField(exist = false)
    private int viewCount; //文章收藏数量

    @TableField(exist = false)
    private int likeCount; //文章点赞数量

    private String createBy;



}
